home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98c.txt / 000026_icon-group-sender _Mon Sep 14 12:36:13 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id MAA20475
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 14 Sep 1998 12:36:10 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA01374; Mon, 14 Sep 1998 12:35:42 -0700
  7. Message-Id: <35FD3E12.56A4@gte.net>
  8. Date: Mon, 14 Sep 1998 11:02:26 -0500
  9. From: MJE <evans@gte.net>
  10. Reply-To: evans@gte.net
  11. Organization: None
  12. X-Mailer: Mozilla 3.01 (Win95; I)
  13. Mime-Version: 1.0
  14. To: icon-group@optima.CS.Arizona.EDU
  15. Subject: Re: Context Switching
  16. References: <199809112225.RAA07906@segfault.cs.utsa.edu>
  17. Content-Type: text/plain; charset=us-ascii
  18. Content-Transfer-Encoding: 7bit
  19. Content-Transfer-Encoding: 7bit
  20. Content-Transfer-Encoding: 7bit
  21. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  22. Content-Transfer-Encoding: 7bit
  23. Status: RO
  24.  
  25. Does it really require threads to do context switching?  I can see the
  26. possibility, but it's not as though the context switching that happens
  27. in Icon requires a "whole separate executable," is it?
  28.  
  29. I have written subroutines in C that use static local variables to
  30. remember their "current state," so that every time you call them, they
  31. remember what was going on at the last call, and just pick up from
  32. there.  They work like charms.
  33.  
  34. It seems to me something similar could happen in Icon without the
  35. complication of threads.
  36.  
  37. Maybe I'm missing something fundamental about the purpose of context
  38. switching in Icon?  I haven't been using the language all that long.
  39.  
  40. Mark
  41.  
  42.  
  43.  
  44.  
  45. Clinton Jeffery wrote:
  46. > Cheyenne Wills and Todd Proebsting recently pointed out (or confirmed)
  47. > that co-expressions can relatively easily be built on top of threads.
  48. > Has anyone implemented and compared the performance of co-expressions using
  49. > a modern threads package to Icon's assembler context switch on the same
  50. > platform?  It would be interesting to know whether we might just switch over
  51. > to threads wholesale, or whether they still have a significant performance
  52. > cost because the synchronization and concurrency of threads are "overkill"
  53. > for co-expressions.
  54. > Clint Jeffery, jeffery@cs.utsa.edu
  55. > Division of Computer Science, The University of Texas at San Antonio
  56. > Research http://www.cs.utsa.edu/research/plss.html
  57.  
  58.